import 'package:trollee/app/core/core.dart';

class CustomButtonCancel extends StatelessWidget {
  const CustomButtonCancel({
    required this.text,
    required this.onPressed,
    Key? key,
    this.width,
    this.height = 44,
    this.textStyle
  }) : super(key: key);

  final String text;
  final VoidCallback onPressed;
  final double? width;
  final double? height;
  final TextStyle? textStyle;
  @override
  Widget build(BuildContext context) {
    return Container(
      height: height,
      width: width,
      alignment: Alignment.center,
      decoration: BoxDecoration(
        border: Border.all(width: AppDimens.dp1,color: AppColors.text_grey),
        borderRadius: BorderRadius.circular(AppDimens.dp8)
      ),
      child: Text(text,style: textStyle ?? AppTextStyles.text_16_bold_primary,),
    ).clickOnce(onPressed);
  }
}
